<?php
/* @var $this UserController */
/* @var $model User */

$this->breadcrumbs=array(
	'Users'=>array('index'),
	$model->admin_id,
);

$this->menu=array(
	array('label'=>'List User', 'url'=>array('index')),
	array('label'=>'Create User', 'url'=>array('create')),
	array('label'=>'Update User', 'url'=>array('update', 'id'=>$model->admin_id)),
    array('label'=>'Block User', 'url'=>array('block', 'id'=>$model->admin_id, 'act' => 'block'), 'visible'=> !$model->block),
    array('label'=>'Unblock User', 'url'=>array('block', 'id'=>$model->admin_id, 'act' => 'unblock'), 'visible'=> $model->block),
	array('label'=>'Delete User', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->admin_id),'confirm'=>'Are you sure you want to delete this item?')),
	array('label'=>'Manage User', 'url'=>array('admin')),
);
?>

<h1>View User #<?php echo $model->admin_id; ?></h1>

<?php $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		'admin_id',
		'admin_name',
		'username',
		'email',
		//'password',
		array(
            // block
            'label'=>'Block',
            'value'=> $model->block ? 'yes' : 'no',
        ),
		//'send_email',
		'register_date',
		'lastvisit_date',
		//'activation',
	),
)); ?>
<div id="actionmenu">
    <?php $this->widget('zii.widgets.CMenu',array(
        'items'=>$this->menu,
        'htmlOptions' => array(
            'class' => 'menu menu-action'
        )
    )); ?>
</div><!-- mainmenu -->